package com.supermap.data.modal;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 部门信息（用户信息关联）
 * TUser entity. @sun'f
 */
@Entity
@Table(name = "T_Department")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class TDepartment {

    /**
     * 主键
     */
    private String id;
    /**
     * 部门类型
     */
    private String dep_type;
    /**
     * 部门名称
     */
    private String dep_name;
    /**
     * 部门代码
     */
    private String dep_code;


    public TDepartment() {
    }

    public TDepartment(String id, String dep_type, String dep_name, String dep_code) {
        this.id = id;
        this.dep_type = dep_type;
        this.dep_name = dep_name;
        this.dep_code = dep_code;
    }

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "DEP_TYPE")
    public String getDep_type() {
        return dep_type;
    }

    public void setDep_type(String dep_type) {
        this.dep_type = dep_type;
    }

    @Column(name = "DEP_NAME")
    public String getDep_name() {
        return dep_name;
    }

    public void setDep_name(String dep_name) {
        this.dep_name = dep_name;
    }

    @Column(name = "DEP_CODE")
    public String getDep_code() {
        return dep_code;
    }

    public void setDep_code(String dep_code) {
        this.dep_code = dep_code;
    }
}
